{% extends "base.html" %}

{% block title %}
Exportar dados para Excel
{% endblock title %}

{% block extrahead %}
$(function() {
		$('#botao_precos').addClass('active');
                $( "#id_data_nascimento" ).datepicker({
			changeMonth: true,
			changeYear: true,
                        dateFormat: 'dd/mm/yy',
                        yearRange: '1900:{{ano_now.year}}'
		});

	});




{% endblock extrahead %}

{% block content %}

        <div class="box-header clear">
                <h2>Exportar dados para Excel</h2>
        </div>
        
        <div class="box-body">
                <div class="box-wrap clear">
                        <div class="col2-3 lastcol">
                                
                                <table class="basic" cellspacing="0">
                                        <tbody>
                                                <tr>
                                                        <form action="/exporta_aluno/" method="post" class="validate-form form bt-space15" >
                                                        <th><h4 class="excel"> Alunos <h4></th>
                                                        <th><input type="submit" class="button green size-121 fl" value="Exportar Alunos" /></th>
                                                        </form>
                                                </tr>
                                                <tr>
                                                        <form action="/tabela_aluno/" method="post" class="validate-form form bt-space15" >
                                                        <th><h4 class="excel">Histórico dos Alunos <h4></th>
                                                        <th><input type="submit" class="button green size-121 fl" value="Lista de Alunos" /></th>
                                                        </form>
                                                </tr>	
                                                <tr>
                                                        <form action="/exporta_professor/" method="post" class="validate-form form bt-space15" >
                                                        <th><h4 class="excel">Professor </h4></th>
                                                        <th><input type="submit" class="button green size-121 fl" value="Exportar Professores" /></th>
                                                        </form>
                                                </tr>
                                                <tr>
                                                        <form action="/exporta_usuario/" method="post" class="validate-form form bt-space15" >
                                                        <th><h4 class="excel"> Detalhes do Usuário<h4></th>
                                                        <th><input type="submit" class="button green size-121 fl" value="Exportar Usuários" /></th>
                                                        </form>
                                                </tr>
                                                <tr>
                                                        <form action="/exporta_gastos/" method="post" class="validate-form form bt-space15" >
                                                        <th><h4 class="excel">Gastos  <h4></th>
                                                        <th><input type="submit" class="button green size-121 fl" value="Exportar Gastos" /></th>
                                                        </form>
                                                </tr>
                                                <tr>
                                                        <form action="/exporta_pagamento/" method="post" class="validate-form form bt-space15">
                                                        <th><h4 class="excel"> Pagamento <h4></th>
                                                        <th><h4 class="excel"> Ano: </h4></th>
                                                                <th>
                                                                        <select name="ano">
                                                                                {% for ano in lista_anos%}
										<option value="{{ano}}"> {{ano}} </a></option>
                                                                                {%endfor%}
                                                                        </select>
                                                                
                                                                </th>
                                                                <th><input type="submit" class="button green size-121 fl" value="Exportar Pagamento" /></th>        
                                                        </form>    
                                                </tr>
                                                        
                                                
                                                <tr>
                                                        <form action="/exporta_inventario/" method="post" class="validate-form form bt-space15" >
                                                        <th><h4 class="excel"> Inventário<h4></th>
                                                        <th><input type="submit" class="button green size-121 fl" value="Exportar Inventário" /></th>
                                                        </form>
                                                </tr>
												<tr>
                                                        <form action="/exporta_aulas_dia/" method="post" class="validate-form form bt-space15">
                                                        <th><h4 class="excel"> Aulas do Dia <h4></th>
                                                        <th><h4 class="excel"> Unidade: </h4></th>
                                                                <th>
                                                                        <select name="unidade">
                                                                                {% for unidade in lista_unidades%}
																				<option value="{{unidade.nome}}"> {{unidade.nome}} </a></option>
                                                                                {%endfor%}
                                                                        </select>
                                                                
                                                                </th>
                                                                <th><input type="submit" class="button green size-121 fl" value="Exportar Aulas" /></th>        
                                                        </form>    
                                                </tr>
                                        </tbody>        
                                </table>
                        </div>
                </div>
        </div>                
{% endblock content %}
